package com.ruoyi.common.core.domain.heytalk.netty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 数据类型
 * @author zhusy
 * @since 2021/11/30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DataType {

    /**
     * 类型
     */
    private String type;

    /**
     * 消息
     */
    @Builder.Default
    private String msg = "";

    /**
     * code码值
     */
    @Builder.Default
    private String code = "";

    /**
     * 数据组装创建时间
     */
    @Builder.Default
    private Date createTime = new Date();

    /**
     * 数据
     */
    @Builder.Default
    private Object data = null;

}
